import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

/**
 * 查询字段
 */
export const searchFormSchema: FormSchema[] = [
  {
    label: '送检中心',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '原始编码',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '业务类型',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '拟稿部门',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '监管机构',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '监管机构联系人',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '监管机构电话',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '手机',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '单证来源',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '单证号',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '样品数量',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '样品单位',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '报检单位名称',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '样品总称',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '送检备注',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '报检单位联系方式',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '样品形态',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '接单时间',
    field: 'keyword',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss',
      placeholder: '请选择接单时间',
    },
    colProps: { span: 6 },
  },
  {
    label: '收货人',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '样品包装',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '货物来源',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '发货人',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '报检单位联系人',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
  {
    label: '运输工具',
    field: 'keyword',
    component: 'JInput',
    colProps: { span: 6 },
  },
];
/**
 * 表格数据
 */
export const columns: BasicColumn[] = [
  {
    title: '序号',
    dataIndex: '',
    key: 'rowIndex',
    width: 60,
    align: 'center',
    customRender: ({ index }) => {
      return parseInt(index) + 1;
    },
  },
  {
    title: '样品名称',
    dataIndex: 'orgCode', //字段不对
    width: 120,
  },
  {
    title: '数量',
    dataIndex: 'status',
    width: 100,
  },
  {
    title: '单位',
    dataIndex: 'status',
    width: 120,
  },
  {
    title: '内部编号',
    dataIndex: 'phone',
    width: 80,
  },
  {
    title: '规格型号',
    dataIndex: 'phone',
    width: 100,
  },
  {
    title: '样品类别',
    dataIndex: 'catName',
    width: 100,
  },
  {
    title: '类别编码',
    dataIndex: 'phone',
    width: 100,
  },
  {
    title: '生产厂家',
    dataIndex: 'catName',
    width: 100,
  },
];
/**
 * 表单数据
 */
export const formSchema: FormSchema[] = [
  {
    label: '样品名称',
    field: 'name',
    component: 'Input',
  },
  {
    label: '数量',
    field: 'name1',
    component: 'Input',
  },
  {
    label: '单位',
    field: 'testStdNo',
    component: 'Input',
  },
  {
    label: '内部编号',
    field: 'testStdNo12',
    component: 'Input',
  },
  {
    label: '规格型号',
    field: 'testStdNo13',
    component: 'Input',
  },
  {
    label: '样品类别',
    field: 'testStdNo14',
    component: 'Input',
  },
  {
    label: '类别编码',
    field: 'testStdNo15',
    component: 'Input',
  },
  {
    label: '生产厂家',
    field: 'testStdNo16',
    component: 'Input',
  },
];
